type int = number;
//class Exception
// did
export class Exception extends Error {
  constructor(message: string = "Exception", public code: int = 10002) {
    super(message);
  }

  public method!: string;

  public static /* const */ ExceptionCodeSystemBase: int = 10000;

  public static /* const */ ExceptionCodeRMIBase: int = 20000;

  public static /* const */ ExceptionCodeUserBase: int = 30000;

  public static /* const */ ExceptionCodeUnkown: int = 10000;

  public static /* const */ ExceptionOutOffMemery: int = 10001;

  public static /* const */ ExceptionCodeBase: int = 10002;

  public static /* const */ ExceptionCodeStd: int = 10003;

  public static /* const */ ExceptionCodeDateTime: int = 10004;

  public static /* const */ ExceptionCodeFunction: int = 10005;

  public static /* const */ ExceptionCodeNullHandle: int = 10006;

  public static /* const */ ExceptionCodeDB: int = 10007;

  public static /* const */ ExceptionCodeSerialize: int = 10008;

  public static /* const */ ExceptionCodeLang: int = 10009;

  public static /* const */ ExceptionCodeXml: int = 10010;
}
